package com.yuyu.demo.spring4.beancycle;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestForBeanCycle {
	public static void main(String[] args) {
		ConfigurableApplicationContext applicationContext = new ClassPathXmlApplicationContext("appBeanCycle.xml");
		BeanCycle beanCycle = (BeanCycle)applicationContext.getBean(BeanCycle.class);
		System.out.println(beanCycle.toString());
		
		applicationContext.close();
	}
}
